package com.wenhai.spring.dependency.injection;

import com.wenhai.xiaomage.spring.ioc.overview.dependency.domain.User;

/**
 * @Author:wenhai
 * @Description: UserHolder
 * @Date:2020/3/10
 */
public class UserHolder {
    private User user;


    public UserHolder() {
    }


    public UserHolder(User user) {
        this.user = user;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "UserHolder{" +
                "user=" + user +
                '}';
    }
}
